# This is a sample Python script.
import feedparser
import pprint
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.





# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    # 网站种子解析
    rss_dw = feedparser.parse('https://rss.dw.com/rdf/rss-chi-press')
    # 抓取内容 ， depth 抓取深度
    # pprint.pprint(rss_dw, depth=5)

    for item in rss_dw['entries']:
        print(item['title'])
        print(item['link'])
        print(item['publishe'])


# See PyCharm help at https://www.jetbrains.com/help/pycharm/
